package com.sh.healthtv.database.model;

/**
 * Created by zhouyucheng on 2017/8/10.
 */

import android.os.Parcel;
import android.os.Parcelable;

import org.litepal.crud.DataSupport;

import java.io.Serializable;

/**
 * 历史收藏model
 */
public class CollectionProgram extends DataSupport implements Serializable, Parcelable {
    private String useId;
    private String name;
    private String imageUrl;
    private String collectDate;

    public String getUseId() {
        return useId;
    }

    public void setUseId(String useId) {
        this.useId = useId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getCollectDate() {
        return collectDate;
    }

    public void setCollectDate(String collectDate) {
        this.collectDate = collectDate;
    }

    @Override
    public String toString() {
        return "CollectionProgram{" +
                "useId='" + useId + '\'' +
                ", name='" + name + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", collectDate='" + collectDate + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.useId);
        dest.writeString(this.name);
        dest.writeString(this.imageUrl);
        dest.writeString(this.collectDate);
    }

    public CollectionProgram() {
    }

    protected CollectionProgram(Parcel in) {
        this.useId = in.readString();
        this.name = in.readString();
        this.imageUrl = in.readString();
        this.collectDate = in.readString();
    }

    public static final Creator<CollectionProgram> CREATOR = new Creator<CollectionProgram>() {
        @Override
        public CollectionProgram createFromParcel(Parcel source) {
            return new CollectionProgram(source);
        }

        @Override
        public CollectionProgram[] newArray(int size) {
            return new CollectionProgram[size];
        }
    };
}
